import { IFeidaoAiWeappPage } from '@dfeidao/atom-wxapp/interfaces';
import get_local from '@dfeidao/atom-wxapp/local/get';
import preview_image from '@dfeidao/atom-wxapp/api/media/preview-image';

export default async function a003(fd: IFeidaoAiWeappPage, e: {
	currentTarget: {
		dataset: {
			current: number;
			bstype: string;
		}
	}
}) {
	const current = e.currentTarget.dataset.current;
	const _arr = get_local(fd, 'bander') as string[];
	const bstype = e.currentTarget.dataset.bstype;
	if (bstype) {
		preview_image(_arr, _arr[current]);
	}

}



